home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (C) 1997, 2000 Aladdin Enterprises. All rights reserved.
-
- This file is part of AFPL Ghostscript.
-
- AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
- distributor accepts any responsibility for the consequences of using it, or
- for whether it serves any particular purpose or works at all, unless he or
- she says so in writing. Refer to the Aladdin Free Public License (the
- "License") for full details.
-
- Every copy of AFPL Ghostscript must include a copy of the License, normally
- in a plain ASCII text file named PUBLIC. The License grants you the right
- to copy, modify and redistribute AFPL Ghostscript, but only under certain
- conditions described in the License. Among other things, the License
- requires that the copyright notice and this notice be preserved on all
- copies.
- */
-
- /*$Id: gsfcmap.h,v 1.4 2000/09/21 03:02:03 lpd Exp $ */
- /* CMap data definition */
- /* Requires gsstruct.h */
-
- #ifndef gsfcmap_INCLUDED
- # define gsfcmap_INCLUDED
-
- #include "gsccode.h"
-
- /* Define the abstract type for a CMap. */
- #ifndef gs_cmap_DEFINED
- # define gs_cmap_DEFINED
- typedef struct gs_cmap_s gs_cmap_t;
- #endif
-
- /* ---------------- Procedural interface ---------------- */
-
- /*
- * Decode a character from a string using a CMap, updating the index.
- * Return 0 for a CID or name, N > 0 for a character code where N is the
- * number of bytes in the code, or an error. Shift the decoded bytes into
- * *pchr. For undefined characters, set *pglyph = gs_no_glyph and return 0.
- */
- int gs_cmap_decode_next(P6(const gs_cmap_t *pcmap, const gs_const_string *str,
- uint *pindex, uint *pfidx,
- gs_char *pchr, gs_glyph *pglyph));
-
- #endif /* gsfcmap_INCLUDED */
-